using System.Reflection;

namespace SubSonic
{
    public static class Singleton<T> where T : class
    {
        public static T Instance = typeof(T).InvokeMember(typeof(T).Name, BindingFlags.CreateInstance | BindingFlags.Instance | BindingFlags.NonPublic, null, null, null) as T;
    }
}
